package com.xiaoshuidi.cloud.framework.yinlian.config;

import com.xiaoshuidi.cloud.framework.yinlian.core.trade.PullTransactionFlowService;
import com.xiaoshuidi.cloud.framework.yinlian.core.trade.PullTransactionFlowServiceImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
@EnableConfigurationProperties(YinlianFtpProperties.class)
public class LeaseYinlianAutoConfiguration {

    @Bean
    public PullTransactionFlowService pullTransactionFlowService(YinlianFtpProperties yinlianFtpProperties) {
        return new PullTransactionFlowServiceImpl(yinlianFtpProperties);
    }

}
